//
//  LBHomeApplication.m
//  LBCoreKit_Example
//
//  Created by LINAICAI on 2017/9/27.
//  Copyright © 2017年 李柰财. All rights reserved.
//

#import "LBHomeApplication.h"
#import <JLRoutes/JLRoutes.h>
@implementation LBHomeApplication
+ (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
    JLRoutes *routes = [JLRoutes globalRoutes];
    NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"plist"];
    NSArray *plist = [NSArray arrayWithContentsOfFile:path];
    NSLog(@"plist=%@",plist);
    for (NSString *string in plist) {
        [routes addRoute:string handler:^BOOL(NSDictionary *parameters) {
            NSLog(@"parameters=%@",parameters);
            return YES; // return YES to say we have handled the route
        }];
    }
    NSLog(@"LBHomeApplication")
    
    

    return YES;
}
+ (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *))restorationHandler {
    if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) {
        return NO;
    }
    return YES;
}
@end
